<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>添加或编辑文章</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel='stylesheet' type='text/css' href='./views/css/admin_style.css'>
<script language="JavaScript" charset="utf-8" type="text/javascript" src="./views/js/jquery.js"></script>
<script language="JavaScript" charset="utf-8" type="text/javascript" src="./views/js/admin_all.js"></script>
<script language="javascript" type="text/javascript" charset="utf-8" src="./views/editor/kindeditor.js"></script>
<script language="javascript" type="text/javascript" charset="utf-8" src="./views/editor/lang/zh_CN.js"></script>
</head>
<body>
<gt name="id" value="0"><form action="?s=Admin/Info/Update" method="post" id="gxform" name="update">
<input type="hidden" name="id" value="{$id}">
<else />
<form action="?s=Admin/Info/Insert" method="post" id="gxform" name="add">
</gt>
<table cellpadding="0" cellspacing="0" class="boxadd">
<tr class="tabs_title">
    <td><span id="tabs" class="fl"><a class="on" href="javascript:void(0)" name="1,2">{$tpltitle}文章</a><a class="tab2" href="javascript:void(0)" name="2,2">其它设置</a></span><span class="fr"><a href="?s=Admin/Info/Show" class="no">返回文章管理</a></span>
    </td>
</tr>
<tr><td>
<div id="showtab_1" style="border-top:1px solid #C6DCF2;">
<ul><li class="l">标 题：<input name="title" type="text" class="input" maxlength="255" value="{$title}"></li>
<li class="r">分 类：<select name="cid" class="select"><volist name="list_channel_info" id="gxcms"><option value="{$gxcms.id}" <eq name="gxcms.id" value="$cid">selected</eq>>{$gxcms.cname}</option><volist name="gxcms['son']" id="gxcms"><option value="{$gxcms.id}" <eq name="gxcms.id" value="$cid">selected</eq>>├ {$gxcms.cname}</option></volist></volist></select></li>
<li class="r">作 者：<input name="inputer" type="text" size="10" value="{$inputer}" class="ct"></li>
</ul>
<ul>
<li class="l">优 化：<input name="director" type="text" class="input" maxlength="255" value="{$director}" title="SEO关键词"></li>
<li class="r">颜 色：<select name="color" class="select"><option value=''>标题颜色</option><option value='#FF0000' style='background-color:#FF0000' <eq name="color" value="#FF0000">selected</eq>>红色</option><option value='#FF33CC' style='background-color:#FF33CC' <eq name="color" value="#FF33CC">selected</eq>>粉红</option><option value='#00FF00' style='background-color:#00FF00' <eq name="color" value="#00FF00">selected</eq>>绿色</option><option value='#660099' style='background-color:#660099' <eq name="color" value="#660099">selected</eq>>紫色</option><option value='#FFFF00' style='background-color:#FFFF00' <eq name="color" value="#FFFF00">selected</eq>>黄色</option><option value='#0000CC' style='background-color:#0000CC' <eq name="color" value="#0000CC">selected</eq>>深蓝</option><option value=''>无色</option></select></li>
<li class="r">人 气：<input name="hits" type="text" size="10" value="{$hits}" class="ct"></li>
</ul>
<ul>
<li class="l">跳 转：<input name="jumpurl" type="text" class="input" maxlength="255" value="{$jumpurl}" title="跳转链接"></li>
<li class="r">星 级：<select name="stars" class="select"><option value="1" <eq name="stars" value="1">selected</eq>>☆</option><option value="2" <eq name="stars" value="2">selected</eq>>☆☆</option><option value="3" <eq name="stars" value="3">selected</eq>>☆☆☆</option><option value="4" <eq name="stars" value="4">selected</eq>>☆☆☆☆</option><option value="5" <eq name="stars" value="5">selected</eq>>☆☆☆☆☆</option>
</select></li>
<li class="r">评 分：<input name="score" type="text" size="10" maxlength="4" value="{$score}" class="ct"></li>
</ul>
<ul>
<li class="l">来 源：<input name="reurl" type="text" class="input" maxlength="255" value="{$reurl}"></li>
<li class="r">状 态：<select name="status" class="select"><option value="1">显示</option><option value="0" <eq name="status" value="0">selected</eq>>隐藏</option></select></li>
<li class="r">时 间：<input name="addtime" type="text" size="20" value="{$addtime|date='Y-m-d H:i:s',###}"> <input name="checktime" type="checkbox"value="1" {$checktime} class="noborder" title="勾选则使用系统当前时间"></li>
</ul>
<ul>
<li class="l">图 片：<input name="picurl" id="picurl" type="text" class="input" maxlength="255" value="{$picurl}"></li>
<li class="r" style="padding-top:6px"><iframe src="?s=Admin/Upload/Show/mid/info" scrolling="no" topmargin="0" width="300" height="25" marginwidth="0" marginheight="0" frameborder="0" align="left"></iframe></li>
</ul>
<ul style="height:70px;line-height:70px;padding-top:5px">
<li style="padding-left:40px;float:left;">简 介：</li>
<li style="float:left"><textarea name='remark' style="width:760px;height:65px;" title="留空则自动截取内容前100个字符">{$remark}</textarea></li>
</ul>
<ul style="height:310px;line-height:310px;padding-top:5px;overflow:hidden">
<li style="padding-left:40px;float:left;">内 容：</li>
<li style="float:left"><textarea id="content" name="content" style="width:760px;height:300px;">{$content}</textarea></li>
</ul>
</div>
<div id="showtab_2" style="display:none;border-top:1px solid #C6DCF2;text-align:left">
<ul><li class="l">评分人：<input name="scoreer" type="text" size="10" value="{$scoreer}" class="ct" title="共多少人评分" maxlength="8"></li></ul>
<ul><li class="l">首字母：<input name="letter" type="text" size="10" value="{$letter}" class="ct" maxlength="2"></li></ul>
<ul><li class="l">月人气：<input name="monthhits" type="text" size="10" value="{$monthhits}" class="ct" maxlength="8"></li></ul>
<ul><li class="l">周人气：<input name="weekhits" type="text" size="10" value="{$weekhits}" class="ct" maxlength="8"></li></ul>
<ul><li class="l">日人气：<input name="dayhits" type="text" size="10" value="{$dayhits}" class="ct" maxlength="8"></li></ul>
<ul><li class="l">支&nbsp;&nbsp;&nbsp;&nbsp;持：<input name="up" type="text" size="10" value="{$up|default='0'}" class="ct" maxlength="8"></li></ul>
<ul><li class="l">反&nbsp;&nbsp;&nbsp;&nbsp;对：<input name="down" type="text" size="10" value="{$down|default='0'}" class="ct" maxlength="8"></li></ul>
</div>
<ul>
<li style="margin-left:70px;text-align:left;padding-top:5px"><input class="bginput" type="submit" name="submit" value=" 提 交 " > <input class="bginput" type="reset" name="Input" value=" 重 置 " ></li>
</ul>
</td></tr>
</table>
</form>
<script type="text/javascript">
var editor;
KindEditor.ready(function(K){
    editor = K.create('#content', {
	resizeType : 1,
	allowPreviewEmoticons : false,
	allowImageUpload : false,
	items : [
	'source', '|', 'fontsize', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
	'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
	'insertunorderedlist', '|', 'emoticons', 'image', 'link', 'unlink', 'about']
})});
var $content = $('#content').val();
	document.getElementById("gxform").onreset = function(){
	KindEditor.html('content', $content);
}
</script> 
<include file="footer" />
</body>
</html>